<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="modelService_grant" labelKey="grant_service.B" defalutName="维护服务">
            <li><a class="grant" target="dialog" mask="true"  width="800" height="550" 
            href="${rc.getContextPath()}/manage/service/servicesLookup?modelId=${modelId!''}&navTabId=${navTabId!''}" title="<@label key='grant_service.B'>维护服务</@label>"><span><@label key="grant_service.B">维护服务</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="modelService_delete" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="ajaxTodo" mask="true" callback="rmServiceAjaxDone(${modelId!''})"
            href="${rc.getContextPath()}/manage/service/grantServicesToProcess?modelId=${modelId!''}&serviceId={service_id}&flag=delete&navTabId=${navTabId!''}" 
            title="<@label key='delete_sure.D'>确定要删除</@label>？" warn="<@label key='select_one.D'>请选择一条记录</@label>"><span><@label key='delete.B'>删除</@label></span></a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="70">
        <thead>
            <tr>
                <th width="100" orderField="serviceName" ><@label key='service_name.C'>服务名称</@label></th>
                <th width="100" orderField="serviceCode"><@label key='service_code.C'>服务标识</@label></th>
                <th width="100" orderField="bizPackage"><@label key='service_bizPackage.C'>所属包</@label></th>
                <th width="100" orderField="createUser"><@label key='createUser.C'>创建人</@label></th>
                <th width="50" orderField="createDate"><@label key='createDateTime.C'>创建时间</@label></th>
                <th width="50" orderField="status"><@label key='service_status.C'>状态</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if services??><#if (services?size>0)> <#list services as service>
            <tr target="service_id" rel="${service.id!''}">
                <td>${service.serviceName!''}</td>
                <td>${service.serviceCode!''}</td>
                <td>${service.bizPackage!''}</td>
                <td>${service.createUser!''}</td>
                <td>${service.createDateTime?string("YYYY-MM-dd")}</td>
                <td><#if service.status == '0'><@label key='enable.C'>启用</@label><#else><@label key='disable.C'>禁用</@label></#if></td>
            </tr>
        </#list>
        <#else>
        <tr target="service_id">
                <td colspan="6" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="service_id">
                <td colspan="6" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
</div>